import { request } from '@/utils/request.js'
// 首页数据 GET /frontpage
export const getFrontpage = () => {
  return request('/frontpage', 'GET')
}
// 新冠疫苗预约时段 GET /newapptime
export const getNewapptime = () => {
  return request('/newapptime', 'GET')
}
// 新冠疫苗提交预约 POST /rescovid
export const postRescovid = (data) => {
  return request('/rescovid', 'POST', data)
}
// 小程序用户登录 POST /wx_login
export const postWxLogin = (data) => {
  return request('/wx_login', 'POST', data)
}
// 新冠疫苗预约订单 GET /coviduser_order
export const getCoviduserOrder = () => {
  return request('/coviduser_order', 'GET')
}
// 取消新冠疫苗预约 GET /covidcancel?query=
export const getCovidCancel = (data) => {
  return request('/covidcancel', 'GET', data)
}
// HPV疫苗列表 GET /otuhpv
export const getOtuhpv = () => {
  return request('/otuhpv', 'GET')
}
// HPV疫苗套餐 GET /hpv_pack
export const getHpvPack = () => {
  return request('/hpv_pack', 'GET')
}
// 查询HPV套餐价格 POST /hpv_price
export const postHpvPrice = (data) => {
  return request('/hpv_price', 'POST', data)
}
// 提交HPV疫苗预约 POST /reshpv
export const postReshpv = (data) => {
  return request('/reshpv', 'POST', data)
}
// HPV疫苗预约订单 GET /hpvuser_order
export const getHpvuserOrder = () => {
  return request('/hpvuser_order', 'GET')
}
// 取消HPV预约 GET /hpvcancel?query=
export const getHpvCancel = (data) => {
  return request('/hpvcancel', 'GET', data)
}
// 获取核酸检测页面数据 GET /nuataget
export const getNuataget = () => {
  return request('/nuataget', 'GET')
}
// 提交核酸检测预约 POST /resnuata
export const postResnuata = (data) => {
  return request('/resnuata', 'POST', data)
}
// 核酸检测订单 GET /nuatauser_order
export const getNuatauserOrder = () => {
  return request('/nuatauser_order', 'GET')
}
// 取消核酸检测预约 GET /nuatacancel?query=
export const getNuataCancel = (data) => {
  return request('/nuatacancel', 'GET', data)
}
// 图片上传接口 GET /upload_picture
export const getUploadPicture = (data) => {
  return request('/upload_picture', 'GET', data)
}
// 提交图文咨询 POST /graphics
export const postGraphics = (data) => {
  return request('/graphics', 'POST', data)
}
// 获取就诊人信息 GET /get_patient
export const getGetPatient = () => {
  return request('/get_patient', 'GET')
}
// 提交就诊人 POST /patient_res
export const postPatientRes = (data) => {
  return request('/patient_res', 'POST', data)
}
// 身份证AI识别 GET /ai_card
export const getAiCard = (data) => {
  return request('/ai_card', 'GET', data)
}
// 获取体检筛选条件 GET /phyterm
export const getPhyterm = () => {
  return request('/phyterm', 'GET')
}
// 获取全部体检套餐 GET /physget
export const getPhysget = () => {
  return request('/physget', 'GET')
}
// 筛选体检套餐 POST /phyquery
export const postPhyquery = (data) => {
  return request('/phyquery', 'POST', data)
}
// 体检套餐详情页数据 GET /phydateil?query=
export const getPhydateil = (data) => {
  return request('/phydateil', 'GET', data)
}
// 体检预约提交 POST /resphy
export const postResphy = (data) => {
  return request('/resphy', 'POST', data)
}
// 获取体检套餐订单 GET /phyuser_order
export const getPhyuserOrder = () => {
  return request('/phyuser_order', 'GET')
}
// 取消体检预约 GET /phycancel?query=
export const getPhycancel = (data) => {
  return request('/phycancel', 'GET', data)
}
// 获取抑郁症题目 GET /depression_topics
export const getDepressionTopics = () => {
  return request('/depression_topics', 'GET')
}
// 获取早泄题目 GET /premature_topics
export const getPrematureTopics = () => {
  return request('/premature_topics', 'GET')
}
// 获取失眠题目 GET /insomnia_topics
export const getInsomniaTopics = () => {
  return request('/insomnia_topics', 'GET')
}
// 抑郁症测试结果 GET /depression
export const getDepression = (data) => {
  return request('/depression', 'GET', data)
}
// 早泄测试结果 GET /premature
export const getPremature = (data) => {
  return request('/premature', 'GET', data)
}
// 失眠测试结果 GET /insomnia
export const getInsomnia = (data) => {
  return request('/insomnia', 'GET', data)
}
// 获取短视频数据 GET /video_list?query=
export const getVideoList = (data) => {
  return request('/video_list', 'GET', data)
}
// 获取父科室列表 GET /department
export const getDepartment = () => {
  return request('/department', 'GET')
}
// 获取父科室下的子科室 GET /reglist?query=
export const getReglist = (data) => {
  return request('/reglist', 'GET', data)
}
// 获取选择医生的日期 GET /timesele?query=
export const getTimesele = (data) => {
  return request('/timesele', 'GET', data)
}
// 获取选择的科室下的全部医生列表 GET /alldist?query=
export const getAlldlist = (data) => {
  return request('/alldlist', 'GET', data)
}
// 根据时间筛选挂号医生 GET /everydlist?query=
export const getEverydlist = (data) => {
  return request('/everydlist', 'GET', data)
}
// 挂号医生主页 GET /doctorhome?_id=
export const getDoctorhome = (data) => {
  return request('/doctorhome', 'GET', data)
}
// 提交挂号预约 POST /regappoin
export const postRegappoin = (data) => {
  return request('/regappoin', 'POST', data)
}
// 获取每个用户的挂号记录 GET /user_registrat
export const getUserRegistrat = () => {
  return request('/user_registrat', 'GET')
}
// 取消预约挂号 GET /regist_cancel?query=
export const getRegistCancel = (data) => {
  return request('/regist_cancel', 'GET', data)
}